package com.lazyfish.list;

import com.lazyfish.birds.Flyable;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XmlBeanAssembleTest {
    @Test
    public void test() {
        ApplicationContext applicationContext  =  new ClassPathXmlApplicationContext("applicationContext.xml");
        System.out.println(applicationContext.getBean("birds"));
        for (Flyable flyable :applicationContext.getBean("birds", Birds.class).getList()) {
            flyable.fly();
        }

    }

}